package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.domain.Permission;

import java.util.Collection;
import java.util.List;

public interface PermissionMapper {

    int insert(Permission record);


    List<Permission> selectAll();


    List<Permission> selectByRoleId(Long roleId);

    List<String> selectAllResource();

    Collection<String> selectResourceByEmpId(Long empId);
}